﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using OnlineStore.Dal;

namespace OnlineStore.Bll
{
    public class bizHistoryCart
    {
        DalHistoryCart _historyCart;
        public bizHistoryCart() { }
        public List<bizHistoryCart> getHistoryCart(tbCustomer User)
        {
            _historyCart = new DalHistoryCart(User);
            if (User == null) return null;
            return _historyCart.LoadHistoryCart();
        }
        int _Order_ID, _NumBerOrder, _Product_Id;
        string _Product_Name,_Status;

        double  _Price;
        public double Price
        {
            get { return _Price; }
            set { _Price = value; }
        }
        public string Product_Name
        {
            get { return _Product_Name; }
            set { _Product_Name = value; }
        }
        public string Status
        {
            get { return _Status; }
            set { _Status = value; }
        }
        public int Order_ID
        {
            get { return _Order_ID; }
            set { _Order_ID = value; }
        }
        public int NumBerOrder
        {
            get { return _NumBerOrder; }
            set { _NumBerOrder = value; }
        }
        public int Product_Id
        {
            get { return _Product_Id; }
            set { _Product_Id = value; }
        }
        public double Total
        {
            get { return _NumBerOrder * _Price; }
        }
    }
}